/*
 * LaneSensorStatus.hpp
 *
 *  Created on: 15 jan. 2013
 *      Author: Admin
 */

#ifndef LANESENSORSTATUS_HPP_
#define LANESENSORSTATUS_HPP_

enum LaneSensorStatus { BOTHOFF, BOTHON, LEFTON, RIGHTON };

class SensorCheck
{
public:
	static bool leftOn(LaneSensorStatus status)
	{
		return (status == LEFTON || status == BOTHON);
	}

	static bool leftOff(LaneSensorStatus status)
	{
		return (status == RIGHTON || status == BOTHOFF);
	}

	static bool rightOn(LaneSensorStatus status)
	{
		return (status == RIGHTON || status == BOTHON);
	}

	static bool rightOff(LaneSensorStatus status)
	{
		return (status == LEFTON || status == BOTHOFF);
	}

};
#endif /* LANESENSORSTATUS_HPP_ */
